package com.alison.module.authors.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Author alison
 * @Date 2024/3/30 10:53
 * @Version 1.0
 * @Description 原生sql nativeSql
 */
public interface SqlMapper {
    @Insert("${paramSQL}")
    void dynamicsInsert(@Param("paramSQL") String sql);

    @Update("${paramSQL}")
    void dynamicsUpdate(@Param("paramSQL") String sql);

    @Delete("${paramSQL}")
    void dynamicsDelete(@Param("paramSQL") String sql);

    @Select("${nativeSelectSql}")
    Object nativeSelectSql(@Param("nativeSelectSql") String nativeSql);

    @Select("${ddlSql}")
    void nativeDDLSql(@Param("ddlSql") String ddlSql);
}
